
<?php /* @var $this Controller */ ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
    xmlns="http://www.w3.org/1999/xhtml"
    xml:lang="hu"
    lang="hu">
<head>
<meta
    http-equiv="Content-Type"
    content="text/html; charset=utf-8" />
<meta
    name="language"
    content="hu" />

<title><?php echo CHtml::encode($this->pageTitle); ?></title>


<!-- blueprint CSS framework -->
<!--
<link
    rel="stylesheet"
    type="text/css"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/bird/bootstrap.css" />

<link
    rel="stylesheet"
    type="text/css"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/bird/responsive.css" />

    -->
<link
    rel="stylesheet"
    type="text/css"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/base.css" />
<link
    rel="stylesheet"
    type="text/css"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/bird/jquery-ui.css" />

<link
    rel="stylesheet"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/font-awesome.min.css">
<!--[if IE 7]>
  <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/font-awesome-ie7.min.css">
  <![endif]-->

<link
    rel="stylesheet"
    type="text/css"
    href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />

<script src="<?php echo webapp()->baseUrl;?>/js/modernizr.js"></script>


</head>

<body>

    <div id="responsive_part">
        <div class="message row-fluid">
            <a href="<?php echo baseUrl(); ?>">
                <div class="span9">
                    <?php echo CHtml::image(baseUrl() .'/images/logo.png', webapp()->name, array('width'=>'100'));?>
                </div>
                <h2 class="">Guszti</h2>
            </a>
        </div>
        <ul class="nav responsive">
            <li><btn
                    class="btn btn-la1rge btn-i1nfo responsive_menu icon_item"
                    data-toggle="collapse"
                    data-target="#sidebar"> <i class="icon-reorder"></i>
                </btn>
            </li>
        </ul>
    </div>
    <!-- Responsive part -->

    <div
        id="sidebar"
        class="collapse">


        <div style="margin-bottom: 0;">
            <div class="message row-fluid">
            <div class="span5">
                    <?php echo CHtml::image(baseUrl() .'/images/logo.png', webapp()->name, array('width'=>'100'));?>
             </div>
                <h4 class="span7" style="color: white; font-size: 2em;"><?php echo webapp()->name; ?></h4>
            </div>
        </div>

        <?php include (Yii::app()->basePath . '/functions/menufunctions.php'); ?>

        <ul
            id="sidebar_menu"
            class="navbar nav nav-list sidebar_box">

            <?php echo menulink('!desktop Főoldal', array('/site/index'));?>


            <!-- settings -->

            <li
                class="accordion-group <?php activeWhen('user', 'block', 'flat');?> <?php openedWhen('user', 'block', 'flat');?>"><a
                class="accordion-toggle widgets"
                data-toggle="collapse"
                data-parent="#sidebar_menu"
                href="#settings"><i class="icon-wrench"></i> Beállítások
            </a>
                <ul
                    id="settings"
                    class="accordion-body <?php collapsedWhen('user', 'flat', 'block'); ?>">
                    <?php
                    echo menulink('!group Felhasználók', array('/user/index'), array(), checkAccess('admin'));
                    echo menulink('!building Háztömbök', array('/block/index'), array(), checkAccess('delegate'));
                    echo menulink('!sitemap Lakások', array('/flat/index'), array(), checkAccess('delegate'));
                    ?>
                </ul>
            </li>

            <?php if(checkAccess('admin')) : ?>
            <!-- Rigths -->

            <li
                class="accordion-group <?php activeWhen('rights');?> <?php openedWhen('rights');?>"><a
                class="accordion-toggle widgets"
                data-toggle="collapse"
                data-parent="#sidebar_menu"
                href="#rights"> Jogosultásgok </a>
                <ul
                    id="rights"
                    class="accordion-body <?php collapsedWhen('rights'); ?>">
                    <?php
                    echo menulink('Jogosultságok', array('/rights/authItem/permissions') );
                    echo menulink('Szerepkörök', array('/rights/authItem/roles') );
                    echo menulink('Feledatok', array('/rights/authItem/tasks') );
                    echo menulink('Műveletek', array('/rights/authItem/operations') );
                    echo menulink('Hozzárendelések', array('/rights/assignment/view') );
                    ?>
                </ul>
            </li>

            <?php endif; ?>



        </ul>

    </div>

    <div id="main">
        <div class="container">
            <div class="container_top">
                <div class="row-fluid ">
                    <div class="top_bar_stats to_hide_tablet">

                        <?php if(isset($this->breadcrumbs)):
                        $this->widget('bootstrap.widgets.BootBreadcrumbs', array(
                            'separator'=>'/',
                            'homeLink'=>CHtml::link('Főoldal', array('/')),
                            'links'=>$this->breadcrumbs,
    				));
                     endif; ?>

                    </div>

                    <div class="top_right">
                        <ul class="nav nav_menu">

                            <li class="dropdown"><a
                                class="dropdown-toggle administrator"
                                id="dLabel"
                                role="button"
                                data-toggle="dropdown"
                                data-target="#"
                                href="/page.html"> <span class="icon"><img
                                        src="<?php echo webapp()->baseUrl; ?>/css/img/profile-avatar.png">
                                </span><span class="title"><?php echo user()->name; ?>
                                </span>
                            </a>
                                <ul
                                    class="dropdown-menu"
                                    role="menu"
                                    aria-labelledby="dLabel">
                                    <li><a href="#"><i
                                            class=" icon-user"></i> My
                                            Profile</a></li>

                                    <?php echo menulink('!key Kilépés', array('/site/logout')); ?>

                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!-- End top-right -->

                    <div class="span4"></div>
                </div>
            </div>
            <!-- End container_top -->
            <div id="container2">

                <?php $this->widget('bootstrap.widgets.BootAlert'); ?>

                <?php echo $content; ?>


            </div>
            <!-- End #container -->
        </div>
        <div id="footer">
            <p></p>
        </div>
    </div>



    <!-- page -->



    <!-- Placed at the end of the document so the pages load faster -->
    <!--
    <script src="<?php echo webapp()->baseUrl;?>/js/bird/jquery.js"></script>
    <script
        language="javascript"
        type="text/javascript"
        src="<?php echo webapp()->baseUrl;?>/js/bird/jquery.sparkline.min.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/excanvas.compiled.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-transition.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-alert.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-modal.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-dropdown.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-scrollspy.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-tab.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-tooltip.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-popover.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-button.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-collapse.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-carousel.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/bootstrap-typeahead.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/fileinput.jquery.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/jquery-ui-1.8.23.custom.min.js"></script>
    <script
        src="<?php echo webapp()->baseUrl;?>/js/bird/jquery.touchdown.js"></script>
-->
    <script src="<?php echo webapp()->baseUrl;?>/js/bird/scripts.js"></script>


</body>
</html>
